Sedimentary rock containing organic carbon.   After being subjected to high temperatures and pressures, the organic material can be transformed to hydrocarbons which are then usually expelled from the source rock to surrounding porous rock formations.  Shales are generally considered to be the dominant type of source rock.